package com.bt.lms.ui.action.teaching.arrange;

import com.bt.lms.ui.page.common.action.pageteaching.TeachingArrangeLabAction;
import com.bt.lms.ui.page.teaching.arrange.PageEditTeachingArrange;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.layout.Pane;

/**
 * 按课程查看编辑按钮事件
 */
public class PageCourseLookEditBtnAction implements EventHandler {

    @Override

    public void handle(Event event) {

        PageEditTeachingArrange pageEditTeachingArrange = new PageEditTeachingArrange();
        Pane pane = TeachingArrangeLabAction.pageSkipInfo.getPane();
        Integer index = TeachingArrangeLabAction.pageSkipInfo.getIndex();
        pane.getChildren().set(index,pageEditTeachingArrange);

    }
}
